#include <iostream>
#include "entity.h"

Entity::Entity()
{
	type = CRITTER;
}

Entity::Entity(entityType type_in, BeColor color_in)
{
	type = type_in;
  colors.push_back(color_in);
}

void Entity::addColor(BeColor color)
{
  colors.push_back(color);
}

BeColor Entity::getColor()
{
  return getColor(0);
}

BeColor Entity::getColor(int colorsel)
{
  int colorcount = colors.size();
  if(colorsel >= colorcount)
    colorsel = colorcount-1;
  if(colorsel < 0)
  {
    std::cerr << "Entity missing color(s)" << std::endl;
    return BeColor(0,0,0,0);
  }
  return colors[colorsel];
}



Entity::~Entity()
{
}


